package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.common.Result;
import com.iflytek.dto.MessageDTO;
import com.iflytek.dto.PageDTO;
import com.iflytek.model.Message;
import com.iflytek.vo.MessageVO;
import com.iflytek.vo.PageVO;

import java.util.List;

/**
 * <p>
 * 留言表 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface MessageService extends IService<Message>   {


    Result<List<MessageVO>> findAll();

    Result<Boolean> saveMessage(MessageDTO dto);

    Result<Boolean> updateMessage(MessageDTO dto);

    Result<PageVO<MessageVO>> findPage(PageDTO<MessageDTO> dto);

    Result<MessageVO> findById(Integer id);

    Result<MessageVO> deleteById(Integer id);

    Result<List<MessageVO>> findByForeignId(Integer foreignId);
}